package com.stlm2.controller;

import com.stlm2.dems.service.KeFuService;
import com.stlm2.util.codecontent.CodeContent;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * Created by apple on 2017.12.14.
 */
@Controller
@RequestMapping("/keFuC")
public class KeFuController {

    @Resource
    private KeFuService keFuService;


    /**
     *  获取详情
     * ffl
     * 2017-12-14 12:05:34
     * @return
     */
    @ResponseBody
    @RequestMapping(value="/getOne.json",produces="application/json;charset=UTF-8")
    public String getCrmDetails(){
        String data = null;
        try {
            data = keFuService.getOne();
        } catch (Exception e) {
            e.printStackTrace();
            return CodeContent.getModelByCode(0, "查询失败", data);
        }
        return data;
    }
}
